<?xml version="1.0" encoding="ISO-8859-1" ?>
<jsp:root version="1.2" xmlns:jsp="http://java.sun.com/JSP/Page"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ice="http://www.icesoft.com/icefaces/component">
	<jsp:directive.page contentType="text/html;charset=ISO-8859-1"
		pageEncoding="ISO-8859-1" />
	<f:view>
		<ice:outputDeclaration doctypeRoot="html"
			doctypePublic="-//W3C//DTD HTML 4.01 Transitional//EN"
			doctypeSystem="http://www.w3.org/TR/html4/loose.dtd" />
		<html>

			<head>
				<title>Confirmar Traslados</title>
				<link rel="stylesheet" type="text/css"
					href="./xmlhttp/css/rime/rime.css" />
				<link rel="stylesheet" type="text/css" href="./css/Clases_Qs.css" />
				<script type="text/javascript" src="js/Funciones.js"></script>
			</head>

			<body style="-rave-layout: grid" background="./Media/img/fondo.jpg">

				<table width="100%" cellpadding="0" cellspacing="0"
					style="vertical-align: top" border="0">
					<tr align="center">
						<td align="center" valign="top">
							<ice:panelGrid border="0" cellpadding="0" cellspacing="0">
								<jsp:directive.include file="Cabecera.jsp" />
							</ice:panelGrid>
						</td>
					</tr>
				</table>
				<table width="100%" cellpadding="0" cellspacing="0">
					<tr align="center">
						<td align="center" valign="top">
							<ice:panelGrid columns="2" cellspacing="0" cellpadding="0"
								border="0" columnClasses="Conf_panelgrid1">
								<ice:panelGrid width="220"
									style='background-image: url("./Media/img/fondo_tree.jpg"); background-repeat: no-repeat;'>
									<jsp:directive.include file="menutree.jsp" />
								</ice:panelGrid>
								<ice:panelGrid width="575"
									style="vertical-align: top;  margin-top: 0px;">



									<ice:form partialSubmit="true" id="formulario"
										style='margin-left: 0px;'>
										<ice:panelGrid width="676">
											<ice:panelGrid width="100%"
												style='text-align: center; height: 40px;background-image: url("./Media/img/Titulo.gif"); background-position: center; background-repeat: no-repeat'>
												<ice:outputText value="CONFIRMAR TRASLADOS "
													styleClass="tituloform" />
											</ice:panelGrid>

											<ice:panelGrid columns="5" style="height: 20px">
												<ice:outputText value="Buscar :"
													style="color:#004080; font-size: 12px; font-weight: bold;" />



												<ice:selectOneMenu value="#{Confirmar_MB.busquedacmbbus}"
													style="width: 107px" tabindex="1"
													valueChangeListener="#{Confirmar_MB.action_selecBusqueda}"
													binding="#{Confirmar_MB.seleconebusqueda}">
													<f:selectItem itemValue="todos" itemLabel="Todos" />
													<f:selectItem itemValue="docnumero" itemLabel="Numero" />
													<f:selectItem itemValue="docestado" itemLabel="Estado" />
													<f:selectItem itemValue="docfecha" itemLabel="Fecha" />
													<f:selectItem itemValue="docbodent"
														itemLabel="Bodega Destino" />
												</ice:selectOneMenu>






												<ice:panelGrid>
													<ice:inputText value="#{Confirmar_MB.buscar}"
														binding="#{Confirmar_MB.txtBuscar}"
														visible="#{Confirmar_MB.busqueda1}"
														rendered="#{Confirmar_MB.busqueda1}"
														onkeydown="manejoEnterCambioCampo(Ice.EventModel.Event.adaptToKeyEvent(event,this));" />

													<ice:selectOneMenu value="#{Confirmar_MB.selecestadobus}"
														binding="#{Confirmar_MB.seleconeestadobus}"
														rendered="#{Confirmar_MB.busqueda2}"
														visible="#{Confirmar_MB.busqueda2}" style="width: 128px">
														<f:selectItem itemValue="7" itemLabel="CERRADA" />
														<f:selectItem itemValue="8" itemLabel="CONFIRMADAS" />
														<f:selectItem itemValue="4" itemLabel="RECHAZADAS" />
													</ice:selectOneMenu>

													<ice:selectInputDate renderAsPopup="true"
														visible="#{Confirmar_MB.busqueda3}"
														rendered="#{Confirmar_MB.busqueda3}"
														value="#{Confirmar_MB.fechabusca}"
														valueChangeListener="#{Confirmar_MB.action_selecfecha}"
														binding="#{Confirmar_MB.txtfechabusca}">
													</ice:selectInputDate>

													<ice:panelGrid columns="3"
														visible="#{Confirmar_MB.busqueda4}"
														rendered="#{Confirmar_MB.busqueda4}"
														styleClass="Conf_panelgrid2">



														<ice:inputText value="#{Confirmar_MB.bbodegas}"
															maxlength="30" visible="#{Confirmar_MB.busqueda4}"
															rendered="#{Confirmar_MB.busqueda4}"
															actionListener="#{Confirmar_MB.action_Validabodega}"
															partialSubmit="true" style="width: 50px">
														</ice:inputText>
														<ice:commandButton styleClass="boton_busc"
															visible="#{Confirmar_MB.busqueda4}"
															rendered="#{Confirmar_MB.busqueda4}"
															actionListener="#{Confirmar_MB.popupAccion_Estado_BodegaPadre}" />
														<ice:inputText value="#{Confirmar_MB.bbodegasnom}"
															visible="#{Confirmar_MB.busqueda4}"
															rendered="#{Confirmar_MB.busqueda4}" maxlength="30"
															partialSubmit="true" readonly="true" style="width: 100px">
														</ice:inputText>
													</ice:panelGrid>



												</ice:panelGrid>

												<ice:commandButton value="Buscar"
													image="./Media/img/But4c.bmp"
													actionListener="#{Confirmar_MB.action_Buscar}" />


											</ice:panelGrid>
											<ice:dataTable var="item" value="#{Confirmar_MB.mngdocw}"
												id="tableUnimed" rows="6" rendered="true"
												headerClass="iceDatTblColHdrc" width="650">

												<ice:outputText value="Listado De Requisiciones"
													style="font-family: Verdana, Arial, Sans-Serif; color: #004080; font-size: 12px; text-align: left" />

												<ice:column style="width: 80px">
													<ice:rowSelector id="selected" value="#{item.selected}"
														multiple="false"
														selectionListener="#{Confirmar_MB.rowSelectionListener}"
														selectedClass="Qs_caficeRowSelSelectedMouseOver"
														mouseOverClass="Qs_caficeRowSelSelected" />
													<f:facet name="header">
														<ice:outputText value="TIPO" styleClass="headertabla" />
													</f:facet>
													<ice:outputText value="#{item.mngdocw.id.doctipo}"
														style="font-family: Verdana, Arial, Sans-Serif; color: #00274F; font-size: 12px" />
												</ice:column>
												<ice:column style="width: 180px">
													<f:facet name="header">
														<ice:outputText value="NUMERO" styleClass="headertabla" />
													</f:facet>
													<ice:outputText value="#{item.mngdocw.id.docnumero}"
														style="font-family: Verdana, Arial, Sans-Serif; color: #00274F; font-size: 12px">

														<f:convertNumber maxFractionDigits="0" groupingUsed="true"
															currencySymbol="" maxIntegerDigits="16" type="currency" />

													</ice:outputText>
												</ice:column>
												<ice:column style="width: 190px">
													<f:facet name="header">
														<ice:outputText value="FECHA" styleClass="headertabla" />
													</f:facet>
													<ice:outputText value="#{item.mngdocw.docfecha}"
														style="font-family: Verdana, Arial, Sans-Serif; color: #00274F; font-size: 12px">
														<f:convertDateTime pattern="dd/MM/yyyy" />
													</ice:outputText>
												</ice:column>
												<ice:column style="width: 150px">
													<f:facet name="header">
														<ice:outputText value="ESTADO" styleClass="headertabla" />
													</f:facet>
													<ice:outputText value="#{item.mngdocw.label.lbnombre}"
														style="font-family: Verdana, Arial, Sans-Serif; color: #00274F; font-size: 12px" />
												</ice:column>
												<ice:column style="width: 120px">
													<f:facet name="header">
														<ice:outputText value="BODEGA - S "
															styleClass="headertabla" />
													</f:facet>
													<ice:outputText value="#{item.mngdocw.docbodsale}"
														style="font-family: Verdana, Arial, Sans-Serif; color: #00274F; font-size: 12px" />
												</ice:column>
												<ice:column style="width: 120px">
													<f:facet name="header">
														<ice:outputText value="BODEGA + E"
															styleClass="headertabla" />
													</f:facet>
													<ice:outputText value="#{item.mngdocw.bodega.bodcodigo}"
														style="font-family: Verdana, Arial, Sans-Serif; color: #00274F; font-size: 12px" />
												</ice:column>


											</ice:dataTable>
											<ice:panelGrid columns="5" style="width: 524px; height: 39px">
												<ice:dataPaginator id="paginator" for="tableUnimed"
													paginator="true" paginatorMaxPages="4" style="height: 17px">
													<f:facet name="first">
														<ice:graphicImage style="border:none"
															url="./css/images/arrow-first.gif" />
													</f:facet>
													<f:facet name="last">
														<ice:graphicImage style="border:none"
															url="./css/images/arrow-last.gif" />
													</f:facet>
													<f:facet name="previous">
														<ice:graphicImage style="border:none"
															url="./css/images/arrow-previous.gif" />
													</f:facet>
													<f:facet name="next">
														<ice:graphicImage style="border:none"
															url="./css/images/arrow-next.gif" />
													</f:facet>
													<f:facet name="fastforward">
														<ice:graphicImage style="border:none"
															url="./css/images/arrow-ff.gif" />
													</f:facet>
													<f:facet name="fastrewind">
														<ice:graphicImage style="border:none"
															url="./css/images/arrow-fr.gif" />
													</f:facet>
												</ice:dataPaginator>

												<ice:commandButton value="VER TRASLADO"
													binding="#{Confirmar_MB.cmdedita}"
													action="#{Confirmar_MB.action_Editar}" styleClass="botonc" />

												<!--  
											              <ice:commandButton value="procedimiento"
												               action="#{Confirmar_MB.buscaproducto}" styleClass="botonv" />
                                                 -->
											</ice:panelGrid>

											<ice:panelPopup id="popupbodegas" draggable="false"
												modal="true" visible="#{Confirmar_MB.modalpopupbodega}"
												autoCentre="true" styleClass="corePopup"
												style=" width: 420px; height: 300px;">
												<f:facet name="header">
													<ice:panelGroup styleClass="popupHeaderWrapper"
														style=" width: 400px;">
														<ice:outputText value="Buscardor De Bodega Destino"
															styleClass="popupHeaderText" />
													</ice:panelGroup>
												</f:facet>
												<f:facet name="body">
													<ice:panelGroup styleClass="popupBody">


														<ice:panelGrid columns="4" style="height: 20px">
															<ice:outputText value="Buscar :" styleClass="qs_label" />
															<ice:selectOneMenu
																value="#{Confirmar_MB.busquedacmbbodega}">
																<f:selectItem itemValue="todos" itemLabel="Todos" />
																<f:selectItem itemValue="bodnombre" itemLabel="Nombre" />
																<f:selectItem itemValue="bodcodigo" itemLabel="Codigo" />
															</ice:selectOneMenu>
															<ice:inputText value="#{Confirmar_MB.buscarbod}"
																binding="#{Confirmar_MB.txtBuscarbod}"
																style="width: 97px"></ice:inputText>
															<ice:commandButton value="Buscar"
																image="./Media/img/But4c.bmp"
																actionListener="#{Confirmar_MB.action_BuscarBod}" />
														</ice:panelGrid>
														<ice:dataTable var="item" headerClass="iceDatTblColHdrc"
															value="#{Confirmar_MB.listaBodegapopup}"
															id="tablepopupbod" rows="6" rendered="true" width="400">

															<ice:column style="width: 60px">
																<f:facet name="header">
																	<ice:outputText value="Codigo" styleClass="headertabla" />
																</f:facet>
																<ice:outputText value="#{item.bodcodigo}"
																	style="font-family: Verdana, Arial, Sans-Serif; color: #00274F; font-size: 12px" />
															</ice:column>
															<ice:column style="width: 160px">
																<f:facet name="header">
																	<ice:outputText value="Nombre" styleClass="headertabla" />
																</f:facet>
																<ice:outputText value="#{item.bodnombre}"
																	style="font-family: Verdana, Arial, Sans-Serif; color: #00274F; font-size: 12px" />
															</ice:column>

															<ice:column style="width: 100px">
																<f:facet name="header">
																</f:facet>
																<ice:commandButton value="#{item.bodcodigo}"
																	binding="#{Confirmar_MB.popup_cmdselecionarBod}"
																	image="./Media/img/Selecionar.bmp"
																	actionListener="#{Confirmar_MB.popupAccion_SelecionarBod}"
																	title="Agregar Bodega" />
															</ice:column>
														</ice:dataTable>
														<ice:panelGrid columns="3"
															style="width: 400px; height: 39px">
															<ice:dataPaginator id="paginatorpopupbod"
																for="tablepopupbod" paginator="true"
																paginatorMaxPages="4" style="height: 17px">
																<f:facet name="first">
																	<ice:graphicImage style="border:none"
																		url="./css/images/arrow-first.gif" />
																</f:facet>
																<f:facet name="last">
																	<ice:graphicImage style="border:none"
																		url="./css/images/arrow-last.gif" />
																</f:facet>
																<f:facet name="previous">
																	<ice:graphicImage style="border:none"
																		url="./css/images/arrow-previous.gif" />
																</f:facet>
																<f:facet name="next">
																	<ice:graphicImage style="border:none"
																		url="./css/images/arrow-next.gif" />
																</f:facet>
																<f:facet name="fastforward">
																	<ice:graphicImage style="border:none"
																		url="./css/images/arrow-ff.gif" />
																</f:facet>
																<f:facet name="fastrewind">
																	<ice:graphicImage style="border:none"
																		url="./css/images/arrow-fr.gif" />
																</f:facet>
															</ice:dataPaginator>
															<ice:commandButton type="submit" value="SALIR"
																styleClass="botonc"
																actionListener="#{Confirmar_MB.popupAccion_Estado_BodegaPadre}" />
															<ice:outputText>
															</ice:outputText>

														</ice:panelGrid>
														<ice:panelGrid style="width: 395px"
															styleClass="Conf_panelgrid2">
															<ice:messages id="msgbod"
																style="width: 10px; height: 200px; color: #AA0000; text-align: left; font-family: Verdana, Arial, Sans-Serif; font-size: 10px" />
														</ice:panelGrid>
													</ice:panelGroup>
												</f:facet>
											</ice:panelPopup>





											<ice:panelPopup id="popupVenta" draggable="false"
												modal="true" visible="#{Confirmar_MB.modalRendered}"
												autoCentre="true" styleClass="popupBody"
												style=" width: 350px; height: 120px;">
												<f:facet name="header">
													<ice:panelGroup styleClass="popupHeaderWrapper">
														<ice:outputText value="Confirmacion..."
															styleClass="popupHeaderText" />
													</ice:panelGroup>
												</f:facet>
												<f:facet name="body">
													<ice:panelGroup styleClass="popupBody">
														<ice:outputText styleClass="qs_label"
															value="Realmente desea Anular el registro #{Confirmar_MB.nombreEliminar}?" />
														<br />
														<br />
														<center>
															<ice:commandButton type="submit" value="Si"
																actionListener="#{Confirmar_MB.action_EliminarTabla}" />
															<ice:commandButton type="submit" value="No"
																actionListener="#{Confirmar_MB.Activapopupeliminar}" />

														</center>
													</ice:panelGroup>
												</f:facet>
											</ice:panelPopup>
											<ice:panelGrid>
												<ice:messages id="msg"
													style="width: 100px; height: 20px; color: #AA0000; text-align: left; font-family: Verdana, Arial, Sans-Serif; font-size: 10px" />
											</ice:panelGrid>


										</ice:panelGrid>
									</ice:form>


								</ice:panelGrid>
							</ice:panelGrid>
						</td>
					</tr>
				</table>
			</body>
		</html>
	</f:view>
</jsp:root>